package com.im.entity.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 用户登录 DTO
 */
@Data
public class UserLoginDTO {
    //手机号登录
    private String phone;
    @NotBlank(message = "密码不能为空")
    private String password;
    //邮箱登录
    private String email;
    //手机还是邮箱登录
    @NotBlank(message = "登录类型不能为空(phone为电话，email为邮箱)")
    private String loginType;
}
